bricks game python solution